home *** CD-ROM | disk | FTP | other *** search
/ Mogel-CD / Mogel CD.iso / daten / amiga / install / c / commando.lha / commando / Install-Commando < prev    next >
Encoding:
Text File  |  1997-11-22  |  1.5 KB  |  73 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #rip "abaddon")
  4. (set #dismount "dismount")
  5.  
  6.  
  7. ;----------------------------
  8.  
  9. ;try to figure out a place where the user usually installs his games
  10. (if (exists "Games:" (noreq) )
  11.     (set @default-dest "Games:")
  12.     (if (exists "SYS:Games" (noreq) )
  13.         (set @default-dest "SYS:Games")
  14.         (if (exists "Work:Games" (noreq) )
  15.             (set @default-dest "Work:Games")
  16.             (if (exists "JEUX:" (noreq) )
  17.                (set @default-dest "JEUX:")
  18.                (set @default-dest "SYS:")
  19.             )
  20.         )
  21.     )
  22. )
  23.  
  24.  
  25. (set default-dest
  26. (askdir
  27.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (disk)
  31. )
  32. )
  33.  
  34. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  35.  
  36. (set #dest (tackon default-dest @app-name))
  37.  
  38.  
  39. (makedir #dest
  40.     (help @makedir-help)
  41.     (infos)
  42. )
  43.  
  44. ;----------------------------
  45.  
  46.  
  47. (copyfiles
  48.     (help @copyfiles-help)
  49.     (source "CommandoHD")
  50.     (dest #dest)
  51.     (infos)
  52. )
  53.  
  54. (copyfiles
  55.     (help @copyfiles-help)
  56.     (source "cmandohd.readme")
  57.     (dest #dest)
  58.     (infos)
  59. )
  60.  
  61. (makeassign    #rip #dest)
  62.  
  63. (message ("\nReady to rip %s data?\n\nThe screen will go black" @app-name))
  64.  
  65.     (if
  66.         (= 0 (run ("jst Commando_Rip QUIET")))
  67.         ("")
  68.         (abort "\"jst\" must be in your PATH !")
  69.     )
  70.  
  71. (exit)
  72.  
  73.